package io.renren.modules.sys.service;

import io.renren.modules.sys.entity.SysUserEntity;
import io.renren.modules.sys.entity.SysUserTokenEntity;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.Set;

/**
 * @author Clown
 * @Date 2021-08-28 23:00
 */
public interface SysUserDetailsService extends UserDetailsService {

    /**
     * 获取用户权限列表
     */
    Set<String> getUserPermissions(long userId);

    SysUserTokenEntity queryByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     */
    SysUserEntity queryUser(Long userId);
}
